import request from '@/utils/request'

// 查询ic卡列表
export function listIcCard(query) {
  return request({
    url: '/business/IcCard/list',
    method: 'get',
    params: query
  })
}

// 查询ic卡详细
export function getIcCard(cardNo) {
  return request({
    url: '/business/IcCard/' + cardNo,
    method: 'get'
  })
}

// 新增ic卡
export function addIcCard(data) {
  return request({
    url: '/business/IcCard',
    method: 'post',
    data: data
  })
}

// 修改ic卡
export function updateIcCard(data) {
  return request({
    url: '/business/IcCard',
    method: 'put',
    data: data
  })
}

// 删除ic卡
export function delIcCard(cardNo) {
  return request({
    url: '/business/IcCard/' + cardNo,
    method: 'delete'
  })
}
